package com.only4play.practice.report.core.component;

import com.only4play.practice.report.core.model.enums.ReportPlatformType;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author mdy
 * * @date 2024/10/21
 */
@Component
@RequiredArgsConstructor
public class UploadFactory {

    public UploadInterface getUpload(ReportPlatformType reportPlatformType){

        switch (reportPlatformType){
            case SMART_SZ:
                // return new SmartSZUpload();
            case MEI_LI_SZ:
                // return new MeiLiSZUpload();
            case STOP_AND_PAY:
                return new StopAndPayUpload();
            default:
                return null;
        }
    }
}
